#ifndef PEONYRABBITVCSMENUPLUGIN_H
#define PEONYRABBITVCSMENUPLUGIN_H

#include <QGenericPlugin>
#include <menu-plugin-iface.h>

class PeonyRabbitVCSMenuPlugin : public QObject, public Peony::MenuPluginInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID MenuPluginInterface_iid FILE "peony-rabbitvcs-menu.json")
    Q_INTERFACES(Peony::MenuPluginInterface)

public:
    explicit PeonyRabbitVCSMenuPlugin(QObject *parent = nullptr);

    PluginInterface::PluginType pluginType() override {return PluginInterface::MenuPlugin;}
    const QString name() override {return tr("Peony-Qt rabbitvcs menu Extension");}
    const QString description() override {return tr("vcs in ui");}
    const QIcon icon() override {return QIcon::fromTheme("");}
    void setEnable(bool enable) override {Q_UNUSED(enable)}
    bool isEnable() override {return true;}

    QString testPlugin() override {return "test rabbitvcs";}
    QList<QAction *> menuActions(Types types, const QString &uri, const QStringList &selectionUris) override;
};

#endif // PEONYRABBITVCSMENUPLUGIN_H
